package com.huaxiafinance.management.mapper;

import com.huaxiafinance.management.dto.request.QueryPackageDto;
import com.huaxiafinance.management.model.PartnerPackage;
import com.huaxiafinance.management.model.PartnerPackageWithBLOBs;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PartnerPackageMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(PartnerPackageWithBLOBs record);

    int insertSelective(PartnerPackageWithBLOBs record);

    PartnerPackageWithBLOBs selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(PartnerPackageWithBLOBs record);

    int updateByPrimaryKeyWithBLOBs(PartnerPackageWithBLOBs record);

    int updateByPrimaryKey(PartnerPackage record);

    List<PartnerPackage> getPackageList(QueryPackageDto dto);

    int getPackageCount(QueryPackageDto dto);

    int getMaxSort();

    PartnerPackageWithBLOBs getPackageDetail(Integer id);

    PartnerPackageWithBLOBs getPackageBySort(Integer sort);

    int getZPackageEnableNum();

    int updateStatus(@Param("isEnable")Integer isEnable,@Param("id") Integer id,@Param("adminId") Integer adminId);
}